package com.medical.literature.document.service;

import com.medical.literature.common.vo.Result;
import com.medical.literature.document.dto.RecognitionRequest;
import com.medical.literature.document.dto.RecognitionResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 识别服务客户端
 */
@FeignClient(name = "recognition-service", configuration = com.medical.literature.document.config.FeignConfig.class)
public interface RecognitionServiceClient {
    
    /**
     * 处理识别任务
     */
    @PostMapping("/recognition/process")
    Result<RecognitionResult> processRecognition(@RequestBody RecognitionRequest request);
}